package com.example.kotlindemo.`interface`


open class Player {
    open fun load() = "load ... "

    class Equipment(var name:String){
        open fun show() = "show ... "
    }

    fun showme(){
        Equipment("ss").show()
    }
}

//对象表达式
fun main() {
    //临时用
    val p = object :Player(){
        override fun load() = "loading ... "
    }

    Player.Equipment("ss").show()

}

//companion static ==java static



